package com.ziyun.erp.web.api.suppOffline;

import com.ziyun.erp.common.utils.UserUtils;
import com.ziyun.erp.modules.suppOffline.dto.SupplierAuditDto;
import com.ziyun.erp.modules.suppOffline.entity.ErpSupplierOfflineEntity;
import com.ziyun.erp.modules.suppOffline.service.ErpSupplierOfflineService;
import io.renren.common.utils.R;
import io.renren.common.validator.ValidatorUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.Map;


/**
 * 线下外协商
 *
 * @author gaosheng
 * @email 
 * @date 2018-09-21 13:07:53
 */
@RestController
@RequestMapping("port/suppOffline/erpsupplieroffline")
public class ErpSupplierOfflineControllerApi {
    @Autowired
    private ErpSupplierOfflineService erpSupplierOfflineService;

    /**
     * 信息
     */
    @RequestMapping("/info")
    public R info(@RequestBody Map paramBodyMap) {
        Integer supplierId=Integer.valueOf(paramBodyMap.get("supplierId").toString());
        return erpSupplierOfflineService.info(supplierId);
    }

    /**
     * 信息
     */
    @RequestMapping("/list")
    public R list(@RequestBody Map paramBodyMap) {
       return erpSupplierOfflineService.queryPageErpSupplierList(paramBodyMap);
    }
}